import javaService from '../javaHttp'
// 流程列表 修改状态
export function setModifyState(params) {
  return javaService({
    url: `${process.env.VUE_APP_BEG_IP}flowwork/flowTemplateinfo/changeStatus`,
    method: 'post',
    params

  })
}
// 流程新建 获取部门
export function getdDepartment(params) {
  return javaService({
    url: `${process.env.VUE_APP_BEG_IP}xboot/hontDepartment/departmentTree`,
    method: 'get',
    params

  })
}
// 流程新建 获取角色
export function getRoleList(params) {
  return javaService({
    url: `${process.env.VUE_APP_BEG_IP}xboot/hontRole/getAllList`,
    method: 'get',
    params

  })
}
// 流程新建 获取人员
export function getUserList(params) {
  return javaService({
    url: `${process.env.VUE_APP_BEG_IP}xboot/hontDepartment/departmentAndHontUserTree`,
    method: 'get',
    params

  })
}
// 流程新建提交
export function setNewProcess(data) {
  return javaService({
    url: `${process.env.VUE_APP_BEG_IP}flowwork/flowTemplateinfo/addFlowTemplateinfo`,
    method: 'post',
    data,
    headers: {
      'content-type': 'application/json'
    }

  })
}
// 流程回显
export function getNewProcess(params) {
  return javaService({
    url: `${process.env.VUE_APP_BEG_IP}flowwork/flowTemplateinfo/getFlowTemplateinfo`,
    method: 'post',
    params

  })
}
// 流程回显提交
export function setEchoCommit(data) {
  return javaService({
    url: `${process.env.VUE_APP_BEG_IP}flowwork/flowTemplateinfo/editFlowTemplateinfo`,
    method: 'post',
    data,
    headers: {
      'content-type': 'application/json'
    }

  })
}

